<template>
  <!--  <iframe :id="id" :src="url" frameborder="0" scrolling="auto" class="iframe"></iframe>-->
  <router-view />
</template>

<script>
export default {
  name: 'PageLayout',
  data () {
    return {
      url: '',
      id: ''
    }
  },
  created () {
    this.goUrl()
  },
  watch: {
    $route () {
      this.goUrl()
    }
  },
  methods: {
    goUrl () {
      console.log(this.$route)
      // let url = this.$route.meta.url + `?timestamp=${Date.now()}`
      // let id = this.$route.path
      // this.id = id
      // if (url !== null && url !== undefined) {
      //   this.url = url
      // }
    }
  }
}
</script>

<style lang="less" scoped>
.iframe {
  height: 100%;
  width: 100%;
  display: block;
}
</style>
